package com.mathlearning.auth.repository;

import com.mathlearning.auth.entity.CoursePurchase;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface CoursePurchaseRepository extends JpaRepository<CoursePurchase, Long> {
    boolean existsByUserIdAndCourseIdAndStatus(Long userId, Long courseId, String status);
}




